// src/index.js 是js的入口文件
// 引入ReactDOM
import ReactDOM from "react-dom/client";
import App from "./App";
import store from "./redux/store";
// 创建根容器
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(<App></App>);

store.subscribe(() => {
  root.render(<App></App>);
});
